/*
 * @Author: ZhaoZhiqi
 * @Date: 2024-09-02 20:09:38
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2024-09-03 20:04:38
 * @Description: 黑名单API
 * @FilePath: \charging-admin\src\api\charge\black.js
 */
import request from "@/utils/request";

// 黑名单管理 查询列表
export function getListAPI(query) {
  return request({
    url: "/black/white/list",
    method: "get",
    params: query,
  });
}

// 黑名单管理 新增修改
export function addOrUpdateAPI(data) {
  return request({
    url: "/black/white/insert",
    method: "post",
    data: data,
  });
}

// 黑名单管理 删除
export function deleteAPI(data) {
  return request({
    url: "/black/white/delete",
    method: "post",
    data: data,
  });
}
